package com.woniuxy.signing.app.controller;


import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.nimbusds.jose.JWSObject;
import com.woniuxy.commons.util.*;
import com.woniuxy.signing.infra.model.Agreement;
import com.woniuxy.signing.infra.model.CocahSigningVenue;
import com.woniuxy.signing.service.AgreementService;
import com.woniuxy.signing.service.CocahSigningVenueService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;
import java.time.LocalDateTime;
import java.util.List;
import java.util.stream.Collectors;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author huanglei
 * @since 2022-08-07
 */
@RestController
@RequestMapping("/agreement")
public class AgreementController {

    @Resource
    AgreementService agreementService;
    @Resource
    CocahSigningVenueService cocahSigningVenueService;

    ObjectMapper objectMapper = new ObjectMapper();

    @GetMapping("/test/1")
    public void test() throws JsonProcessingException, ParseException {
        LoginUserDto loginUserDto = GetTokenUserLogin.getTokenUserLogin();
        System.out.println(loginUserDto.getLoginId());
        System.out.println(loginUserDto.getLoginName());
    }
}

